import { createApp } from 'vue';
import App from './App.vue';
import { setupRouter, setupComponent, setupStore } from './internal';
import { unmountGlobalLoading } from '@shared/utils/vue';

async function bootstrap() {
  const app = createApp(App);
  setupRouter(app);
  setupComponent(app);
  await setupStore(app);
  app.mount('#app');
  requestIdleCallback(() => unmountGlobalLoading());
}

bootstrap();
